#============================================================================#
## Python2启动HTTPServer
## 显示当前目录下文件信息
ls -lh --time-style="+%Y-%m-%d %H:%M:%S"
## 开启SimpleHTTPServer
port="8011";
ip=$(/sbin/ifconfig|grep "inet "|grep -v 127.0.0.1|awk  '{gsub("addr:","",$2);print $2}')
echo -e "\n wget -r -nH -l inf --limit-rate=10M http://${ip}:${port}\n";
sudo python -m SimpleHTTPServer ${port}


#============================================================================#
## Python3启动HTTPServer
## 显示当前目录下文件信息
ls -lh --time-style="+%Y-%m-%d %H:%M:%S"
## 开启SimpleHTTPServer
port="8011";
ip=$(/sbin/ifconfig|grep "inet "|grep -v 127.0.0.1|awk  '{gsub("addr:","",$2);print $2}')
echo -e "\n wget -r -nH -l inf --limit-rate=10M http://${ip}:${port}\n";
sudo python3.5 -m http.server ${port}